<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>App Runner System Info</title>
    <link rel="stylesheet" href="site.css">
</head>
<body>

<header th:replace="base.html :: header"></header>

<main>

    <h2>System Info</h2>

    <p>All this information is also available via the <a href="/app-runner-home/docs/api.html#!/System/systemInfo">System API</a>.</p>

    <p><a href="https://github.com/danielflower/app-runner-router">App Runner Router</a> is not being used.</p>

    <table class="systemTable">
        <tbody>
        <tr>
            <th>Host</th>
            <td th:text="${instanceHost}">name</td>
        </tr>
        <tr>
            <th>User</th>
            <td th:text="${user}">name</td>
        </tr>
        <tr>
            <th>App Runner version</th>
            <td th:text="*{appRunnerVersion}?: 'unknown'">name</td>
        </tr>
        <tr>
            <th>OS</th>
            <td th:text="${os.osName}">name</td>
        </tr>
        <tr>
            <th>PID</th>
            <td th:text="${#numbers.formatInteger(os.appRunnerPid, 0)}">name</td>
        </tr>
        <tr>
            <th>Up-time</th>
            <td><span th:text="${#numbers.formatInteger(os.uptimeInSeconds, 0)}">name</span> seconds</td>
        </tr>
        <tr th:each="publicKey : ${publicKeys}">
            <th>Public key</th>
            <td><pre th:text="*{publicKey}?: '(public key not detected)'" class="overflower">
                    KEY
                </pre></td>
        </tr>
        <tr th:each="sample : ${samples}">
            <th th:text="${sample.name}">Runner</th>
            <td><pre class="overflower" th:text="${sample.version}">1.0</pre></td>
        </tr>
        </tbody>
    </table>

</main>

<footer th:replace="base.html :: footer"></footer>

</body>
</html>
